<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
    <title>支付成功</title>
    <style>
        html,body{
            margin: 0;
            padding: 0;
        }
.okd {
  text-align: center;
  background-color: #2a71c8;
  padding: 10% 0;
}

.okd img {
  width: 20%;
}
.tex{
  width:80%;
  margin:0 auto;
  color:white;
  text-align: left;
  font-size:15px;
  margin-top:5px;
}
.okd .tex1 {
  font-size: 16px;
  font-family: PingFang-SC-Regular;
  color: #FFB24F;
  line-height: 35px;
  margin-top:15px;
}

.okd .tex2 {
  font-size: 12px;
  font-family: PingFang-SC-Regular;
  color: rgba(136, 179, 232, 1);
  line-height: 35px;
}
.rebu {
  width: 80%;
  margin: 10% auto;
  padding: 5% 0;
  font-size: 18px;
  text-align: center;
  background-color: #2a71c8;
  color: white;
  border-radius: 10px;
}
.btn{
    color: #2A71C8;
    border: 1px solid;
    background: #fff;
    outline: none;
    cursor: pointer;
    padding: 3px 2rem;
    border-radius: 15px;
    font-size: 16px;
    margin-top: 30px;
    width: 47%;
}
       
    </style>
</head>

<body>
    <div>
		<div class="okd">
			<img src="https://hstatic.1818pay.cn/image/icon/suc.png" />
			<p class="tex1">已下单，支付结果以银行卡实际扣款为准</p>
      <p class="tex">温馨提示：银行卡扣款失败时，请检查输入的银行卡信息是否正确，
        不建议频繁尝试，如有疑问，请咨询客服。</p>
    </div>
    <p style='text-align: center;font-size: 2rem;'>
        <button class="btn" onclick="fanhui()">确定</button>
    </p>
    
	</div>
</body>
<script>
  var yj = {
    getQueryString: function(name) {
      var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
      var r = window.location.search.substr(1).match(reg);
      if (r != null) return unescape(r[2]);
      return null;
    }
  };
  var terminal = yj.getQueryString("terminal");
  function fanhui(){
    // window.location='./errorsouye.html'
    try {
      if(terminal == 'iOS'){
        window.webkit.messageHandlers.nativeLoadHome.postMessage(123)
      }else{
        backHome.backHomePage()
      }
    } catch (error) {
      console.log('错误',error)
    }
  }
</script>
</html>